package com.jic.product.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.product.entity.WarehouseProductRelation;
import com.jic.product.manage.request.WarehouseProductRelationRequest;
import com.jic.product.manage.response.WarehouseProductRelationResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 仓库和商品关联表
 * @author :
 * @email :
 * @since : 2020-02-21 02:15:49
 * @version : v1.0.0
 */
@Mapper
public interface  WarehouseProductRelationMapper {

    long insert(WarehouseProductRelation warehouseProductRelation);

    long delete(Long id);

    long update(WarehouseProductRelationRequest warehouseProductRelationRequest);

    WarehouseProductRelation queryByPrimaryKey(Long id);

    List<WarehouseProductRelation> query(WarehouseProductRelation warehouseProductRelation);

    long queryWarehouseProductCount(WarehouseProductRelation warehouseProductRelation);

    List<WarehouseProductRelationResponse> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("warehouseProductRelation") WarehouseProductRelation warehouseProductRelation);

    long queryPageCount(WarehouseProductRelation warehouseProductRelation);
}
